package com.henu.engineer.controller;

import com.henu.engineer.dao.mapper.UserXmlMapper;
import com.henu.engineer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author noexcept
 * @date 2021/7/26 6:57
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @PatchMapping("/user")
    String updatePwd(String accountId, String oldPwd,String newPwd){
        String res = userService.updatePwd(accountId, oldPwd, newPwd);
        return res;
    }
}
